
#Region "Summary"
''' -----------------------------------------------------------------------------
''' Project	 : PTT.StationsTracking.Data
''' Class	 : StationsTracking.Data.QueryInvHuman
''' 
''' -----------------------------------------------------------------------------
''' <summary>
''' Query Result Single Business Entity
''' </summary>
''' <remarks>
''' Sample of business entity coding
''' </remarks>
''' <history>
''' 	[Generater by Nok]	7/4/2549 16:00:16	Created
''' </history>
''' -----------------------------------------------------------------------------
#End Region

#Region ".NET Framework Class Import"
Imports System
Imports System.Xml.Serialization
Imports System.IO
Imports System.Runtime.Serialization
Imports System.Runtime.Serialization.Formatters.Binary
Imports System.Collections
#End Region

<Serializable()> _
Public Class QueryInvHuman
#Region "Internal member variables"
    Private _HumanId As Int32
    Private _Name As String
    Private _ReserveId As String
#End Region

    Public Sub New()
        _HumanId = Nothing
        _Name = Nothing
        _ReserveId = Nothing
    End Sub

    Public Sub New(ByVal HumanId As Int32, _
       ByVal Name As String, _
       ByVal ReserveId As String)
        _HumanId = HumanId
        _Name = Name
        _ReserveId = ReserveId
    End Sub

#Region "Property"

    Public Property HumanId() As Int32
        Get
            Return _HumanId
        End Get
        Set(ByVal value As Int32)
            _HumanId = value
        End Set
    End Property


    Public Property Name() As String
        Get
            Return _Name
        End Get
        Set(ByVal value As String)
            _Name = value
        End Set
    End Property


    Public Property ReserveId() As String
        Get
            Return _ReserveId
        End Get
        Set(ByVal value As String)
            _ReserveId = value
        End Set
    End Property

#End Region
End Class

''' -----------------------------------------------------------------------------
''' Project	 : PTT.StationsTracking.Data
''' Class	 : StationsTracking.Data.QueryInvHumans
''' 
''' -----------------------------------------------------------------------------
''' <summary>
''' Collection of query result
''' </summary>
''' <remarks>
''' Sample
''' </remarks>
''' <history>
''' 	[NOK'S Generater]	7/4/2549 16:00:16	Created
''' </history>
''' -----------------------------------------------------------------------------
<Serializable()> _
Public Class QueryInvHumans
    Inherits CollectionBase


    Default Public ReadOnly Property Item(ByVal index As Integer) As QueryInvHuman
        Get
            If (index < 0 Or index >= Me.InnerList.Count) Then
                Throw New Exception("index has to be between 0 and " & (Me.InnerList.Count - 1).ToString())
            Else
                Return CType(Me.InnerList(index), QueryInvHuman)
            End If
        End Get
    End Property

    Public Sub Add(ByVal info As QueryInvHuman)
        Me.InnerList.Add(info)
    End Sub

    Public Sub SetItem(ByVal index As Integer, ByVal value As QueryInvHuman)
        If (index < 0 Or index >= Me.InnerList.Count) Then
            Throw New Exception("index has to be between 0 and " & (Me.InnerList.Count - 1).ToString())
        Else
            Me.InnerList(index) = value
        End If
    End Sub


End Class
